using System;
using System.Collections.Generic;
using System.Text;
using System.Net.Sockets;
using System.Threading;

namespace DirectorySerber
{
    class Program
    {


        static void Main(string[] args)
        {

            DirectoryServer DS = new DirectoryServer(8989);
            Thread T = new Thread(new ThreadStart(DS.Start));
            T.Start();

            Console.WriteLine("Server running on port 8989... Press any key to stop.");
            Console.ReadKey();
            DS.Stop();
            T.Abort();

        }

    }
}
